<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!-- allUsers.jsp -->
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<html>
<head>
  <title>所有用户信息</title>
</head>
<body>
<h1>所有用户信息</h1>
<table border="1" align="center" width="400">
  <tr>
    <th>ID</th>
    <th>用户名</th>
    <th>密码</th>
    <th>注册时间</th>
  </tr>
  <c:forEach items="${requestScope.userinfoList}" var="userinfo">
    <tr>
      <td>${userinfo.id}</td>
      <td>${userinfo.username}</td>
      <td>${userinfo.password}</td>
      <td><fmt:formatDate value="${userinfo.registerTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate> </td>
    </tr>
  </c:forEach>
</table>
</body>
</html>
